import {createApp} from 'vue'
import '@/style/reset.scss'

import App from './App.vue'
import router from './router'

import pinia from '@/store/index.ts'

import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import zhCn from 'element-plus/es/locale/lang/zh-cn.mjs'

import HospitalTop from "@/components/HospitalTop.vue";
import HospitalBottom from "@/components/HospitalBottom.vue";
import Login from "@/components/Login.vue";
import Visitor from "@/components/Visitor.vue";

const app = createApp(App)

app.component('HospitalTop', HospitalTop)
app.component('HospitalBottom', HospitalBottom)
app.component('Login', Login)
app.component('Visitor', Visitor)

app.use(router)
app.use(pinia)
app.use(ElementPlus, {
    locale: zhCn,
})

app.mount('#app')
